package com.example.day18;

import java.io.*;

/**
 * @author Lenovo
 */
public class CopyJavaDemo01 {
    public static void main(String[] args) throws IOException, java.io.IOException {
        InputStreamReader isr = new InputStreamReader(new FileInputStream("myCharStream\\ConversionStreamDemo.java"));
        OutputStreamWriter osw = new OutputStreamWriter(new FileOutputStream("myCharStream\\Copy.java"));
        char[] chs = new char[1024];
        int len;
        while ((len=isr.read(chs))!=-1) {
            osw.write(chs,0,len);
    }
        osw.close();
        isr.close();
    }
}
